package com.yidu.best.TA.Ta.domain;

import java.math.BigDecimal;
import java.util.Date;


public class Ta {
	private String fundTradeId;
	private String fundTradeNo;
	private String fundId;
	private String fundCode;
	private String fundName;
	private String fundTradeType;
	private String accountId;
	private String accountNo;
	private String accountName;
	private Integer tradeFlag;
	private BigDecimal tradePrice;
	private Date tradeDate;
	private Integer shares;
	private BigDecimal turnover;
	private BigDecimal stampTax;
	private BigDecimal managementFees;
	private BigDecimal transferFee;
	private BigDecimal commission;
	private BigDecimal brokerage;
	private BigDecimal total;
	private BigDecimal securityInterest;
	private Integer tradeStatus;
	
	public Ta() {
	}

	public Ta(String fundTradeId, String fundTradeNo, String fundId, String fundCode, String fundName,
			String fundTradeType, String accountId, String accountNo, String accountName, Integer tradeFlag,
			BigDecimal tradePrice, Date tradeDate, Integer shares, BigDecimal turnover, BigDecimal stampTax,
			BigDecimal managementFees, BigDecimal transferFee, BigDecimal commission, BigDecimal brokerage,
			BigDecimal total, BigDecimal securityInterest, Integer tradeStatus) {
		super();
		this.fundTradeId = fundTradeId;
		this.fundTradeNo = fundTradeNo;
		this.fundId = fundId;
		this.fundCode = fundCode;
		this.fundName = fundName;
		this.fundTradeType = fundTradeType;
		this.accountId = accountId;
		this.accountNo = accountNo;
		this.accountName = accountName;
		this.tradeFlag = tradeFlag;
		this.tradePrice = tradePrice;
		this.tradeDate = tradeDate;
		this.shares = shares;
		this.turnover = turnover;
		this.stampTax = stampTax;
		this.managementFees = managementFees;
		this.transferFee = transferFee;
		this.commission = commission;
		this.brokerage = brokerage;
		this.total = total;
		this.securityInterest = securityInterest;
		this.tradeStatus = tradeStatus;
	}

	@Override
	public String toString() {
		return "Ta [fundTradeId=" + fundTradeId + ", fundTradeNo=" + fundTradeNo + ", fundId=" + fundId + ", fundCode="
				+ fundCode + ", fundName=" + fundName + ", fundTradeType=" + fundTradeType + ", accountId=" + accountId
				+ ", accountNo=" + accountNo + ", accountName=" + accountName + ", tradeFlag=" + tradeFlag
				+ ", tradePrice=" + tradePrice + ", tradeDate=" + tradeDate + ", shares=" + shares + ", turnover="
				+ turnover + ", stampTax=" + stampTax + ", managementFees=" + managementFees + ", transferFee="
				+ transferFee + ", commission=" + commission + ", brokerage=" + brokerage + ", total=" + total
				+ ", securityInterest=" + securityInterest + ", tradeStatus=" + tradeStatus + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result + ((accountName == null) ? 0 : accountName.hashCode());
		result = prime * result + ((accountNo == null) ? 0 : accountNo.hashCode());
		result = prime * result + ((brokerage == null) ? 0 : brokerage.hashCode());
		result = prime * result + ((commission == null) ? 0 : commission.hashCode());
		result = prime * result + ((fundCode == null) ? 0 : fundCode.hashCode());
		result = prime * result + ((fundId == null) ? 0 : fundId.hashCode());
		result = prime * result + ((fundName == null) ? 0 : fundName.hashCode());
		result = prime * result + ((fundTradeId == null) ? 0 : fundTradeId.hashCode());
		result = prime * result + ((fundTradeNo == null) ? 0 : fundTradeNo.hashCode());
		result = prime * result + ((fundTradeType == null) ? 0 : fundTradeType.hashCode());
		result = prime * result + ((managementFees == null) ? 0 : managementFees.hashCode());
		result = prime * result + ((securityInterest == null) ? 0 : securityInterest.hashCode());
		result = prime * result + ((shares == null) ? 0 : shares.hashCode());
		result = prime * result + ((stampTax == null) ? 0 : stampTax.hashCode());
		result = prime * result + ((total == null) ? 0 : total.hashCode());
		result = prime * result + ((tradeDate == null) ? 0 : tradeDate.hashCode());
		result = prime * result + ((tradeFlag == null) ? 0 : tradeFlag.hashCode());
		result = prime * result + ((tradePrice == null) ? 0 : tradePrice.hashCode());
		result = prime * result + ((tradeStatus == null) ? 0 : tradeStatus.hashCode());
		result = prime * result + ((transferFee == null) ? 0 : transferFee.hashCode());
		result = prime * result + ((turnover == null) ? 0 : turnover.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Ta other = (Ta) obj;
		if (accountId == null) {
			if (other.accountId != null)
				return false;
		} else if (!accountId.equals(other.accountId))
			return false;
		if (accountName == null) {
			if (other.accountName != null)
				return false;
		} else if (!accountName.equals(other.accountName))
			return false;
		if (accountNo == null) {
			if (other.accountNo != null)
				return false;
		} else if (!accountNo.equals(other.accountNo))
			return false;
		if (brokerage == null) {
			if (other.brokerage != null)
				return false;
		} else if (!brokerage.equals(other.brokerage))
			return false;
		if (commission == null) {
			if (other.commission != null)
				return false;
		} else if (!commission.equals(other.commission))
			return false;
		if (fundCode == null) {
			if (other.fundCode != null)
				return false;
		} else if (!fundCode.equals(other.fundCode))
			return false;
		if (fundId == null) {
			if (other.fundId != null)
				return false;
		} else if (!fundId.equals(other.fundId))
			return false;
		if (fundName == null) {
			if (other.fundName != null)
				return false;
		} else if (!fundName.equals(other.fundName))
			return false;
		if (fundTradeId == null) {
			if (other.fundTradeId != null)
				return false;
		} else if (!fundTradeId.equals(other.fundTradeId))
			return false;
		if (fundTradeNo == null) {
			if (other.fundTradeNo != null)
				return false;
		} else if (!fundTradeNo.equals(other.fundTradeNo))
			return false;
		if (fundTradeType == null) {
			if (other.fundTradeType != null)
				return false;
		} else if (!fundTradeType.equals(other.fundTradeType))
			return false;
		if (managementFees == null) {
			if (other.managementFees != null)
				return false;
		} else if (!managementFees.equals(other.managementFees))
			return false;
		if (securityInterest == null) {
			if (other.securityInterest != null)
				return false;
		} else if (!securityInterest.equals(other.securityInterest))
			return false;
		if (shares == null) {
			if (other.shares != null)
				return false;
		} else if (!shares.equals(other.shares))
			return false;
		if (stampTax == null) {
			if (other.stampTax != null)
				return false;
		} else if (!stampTax.equals(other.stampTax))
			return false;
		if (total == null) {
			if (other.total != null)
				return false;
		} else if (!total.equals(other.total))
			return false;
		if (tradeDate == null) {
			if (other.tradeDate != null)
				return false;
		} else if (!tradeDate.equals(other.tradeDate))
			return false;
		if (tradeFlag == null) {
			if (other.tradeFlag != null)
				return false;
		} else if (!tradeFlag.equals(other.tradeFlag))
			return false;
		if (tradePrice == null) {
			if (other.tradePrice != null)
				return false;
		} else if (!tradePrice.equals(other.tradePrice))
			return false;
		if (tradeStatus == null) {
			if (other.tradeStatus != null)
				return false;
		} else if (!tradeStatus.equals(other.tradeStatus))
			return false;
		if (transferFee == null) {
			if (other.transferFee != null)
				return false;
		} else if (!transferFee.equals(other.transferFee))
			return false;
		if (turnover == null) {
			if (other.turnover != null)
				return false;
		} else if (!turnover.equals(other.turnover))
			return false;
		return true;
	}

	public String getFundTradeId() {
		return fundTradeId;
	}

	public void setFundTradeId(String fundTradeId) {
		this.fundTradeId = fundTradeId;
	}

	public String getFundTradeNo() {
		return fundTradeNo;
	}

	public void setFundTradeNo(String fundTradeNo) {
		this.fundTradeNo = fundTradeNo;
	}

	public String getFundId() {
		return fundId;
	}

	public void setFundId(String fundId) {
		this.fundId = fundId;
	}

	public String getFundCode() {
		return fundCode;
	}

	public void setFundCode(String fundCode) {
		this.fundCode = fundCode;
	}

	public String getFundName() {
		return fundName;
	}

	public void setFundName(String fundName) {
		this.fundName = fundName;
	}

	public String getFundTradeType() {
		return fundTradeType;
	}

	public void setFundTradeType(String fundTradeType) {
		this.fundTradeType = fundTradeType;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public Integer getTradeFlag() {
		return tradeFlag;
	}

	public void setTradeFlag(Integer tradeFlag) {
		this.tradeFlag = tradeFlag;
	}

	public BigDecimal getTradePrice() {
		return tradePrice;
	}

	public void setTradePrice(BigDecimal tradePrice) {
		this.tradePrice = tradePrice;
	}

	public Date getTradeDate() {
		return tradeDate;
	}

	public void setTradeDate(Date tradeDate) {
		this.tradeDate = tradeDate;
	}

	public Integer getShares() {
		return shares;
	}

	public void setShares(Integer shares) {
		this.shares = shares;
	}

	public BigDecimal getTurnover() {
		return turnover;
	}

	public void setTurnover(BigDecimal turnover) {
		this.turnover = turnover;
	}

	public BigDecimal getStampTax() {
		return stampTax;
	}

	public void setStampTax(BigDecimal stampTax) {
		this.stampTax = stampTax;
	}

	public BigDecimal getManagementFees() {
		return managementFees;
	}

	public void setManagementFees(BigDecimal managementFees) {
		this.managementFees = managementFees;
	}

	public BigDecimal getTransferFee() {
		return transferFee;
	}

	public void setTransferFee(BigDecimal transferFee) {
		this.transferFee = transferFee;
	}

	public BigDecimal getCommission() {
		return commission;
	}

	public void setCommission(BigDecimal commission) {
		this.commission = commission;
	}

	public BigDecimal getBrokerage() {
		return brokerage;
	}

	public void setBrokerage(BigDecimal brokerage) {
		this.brokerage = brokerage;
	}

	public BigDecimal getTotal() {
		return total;
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	public BigDecimal getSecurityInterest() {
		return securityInterest;
	}

	public void setSecurityInterest(BigDecimal securityInterest) {
		this.securityInterest = securityInterest;
	}

	public Integer getTradeStatus() {
		return tradeStatus;
	}

	public void setTradeStatus(Integer tradeStatus) {
		this.tradeStatus = tradeStatus;
	}
}
